//
//  Stock.m
//  命令模式
//
//  Created by flannery on 2018/12/19.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "Stock.h"
@interface Stock ()
@property (nonatomic, strong) NSString* name;
@property (nonatomic, assign) int quantity;
@end
@implementation Stock
- (NSString *)name{
    return @"ABC";
}

- (int)quantity{
    return 10;
}

- (void)buy{
    NSLog(@"Stock [ Name: %@, Quantity:%d ] bought", self.name, self.quantity);
}

- (void)sell{
     NSLog(@"Stock [ Name: %@, Quantity:%d ] sold", self.name, self.quantity);
}


@end
